@echo off
if not "%RESTQL_HOME%"=="" goto gotHome
set RESTQL_HOME=.

:gotHome
set CLASSPATH=
for %%i in ("%RESTQL_HOME%\lib\*.jar") do call :addjar %%i
goto :runProg

:addjar
set RESTQL_CP=%1;%RESTQL_CP%
goto :eof

:runProg
java -cp %RESTQL_CP% org.restql.Launcher